package com.ruoyi.pos.mapper.transaction;

import com.ruoyi.pos.domain.transaction.PosSaleDetail;

import java.util.List;

/**
 * POS销售明细Mapper接口
 * 
 * @author ruoyi
 * @date 2025-01-30
 */
public interface PosSaleDetailMapper {

    /**
     * 根据交易ID查询销售明细
     * 
     * @param transactionId 交易ID
     * @return 销售明细列表
     */
    public List<PosSaleDetail> selectPosSaleDetailByTransactionId(Long transactionId);

    /**
     * 新增POS销售明细
     * 
     * @param posSaleDetail POS销售明细
     * @return 结果
     */
    public int insertPosSaleDetail(PosSaleDetail posSaleDetail);
}
